package ch09.Map;

/**
 * Created by 其 on 2016/4/2.
 */
import java.util.*;

public class MapKeyValue3 {
    public static void main(String[] args) {
        Map map = new TreeMap();
        map.put("one", "一");
        map.put("two", "二");
        map.put("three", "三");
        map.forEach(
                (key, value) -> System.out.printf("(键 %s, 值 %s)%n", key, value)
        );
    }
}
